package com.haruhinav.controller.admin;

import com.haruhinav.entity.User;
import com.haruhinav.service.UserService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/api/admin/user")
public class AdminUserController {
    @Resource
    private UserService userService;
    //所有用户
    @PostMapping("/y/list")
    public List<User> getAllUser(@RequestBody User user){
        return userService.getAllUser(user);
    }
}
